package com.gelingqin.es.springbootdemo.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 日志请求实体
 * @author 86133
 *
 */
public class LogRequest implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 查询的索引模板
	 */
	private String indexPattern="app-logs-*";
	/**
	 * 时间key
	 */
	private String timeKey="logTime";
	/**
	 * 日志内容key
	 */
	private String contentKey="content";
	/**开始时间*/
	private Date startTime;
	/**结束时间*/
	private Date endTime;
	/**搜索内容仅支持日志内容搜索字段*/
	private String searchWords;
	
	
	/**
	 * 查询条件列表
	 */
	private List<Condition> conditions;
	/**
	 * 查询条数
	 */
	private int size;
	
	public LogRequest() {
		super();
	}

	public List<Condition> getConditions() {
		return conditions;
	}
	public void setConditions(List<Condition> conditions) {
		this.conditions = conditions;
	}
	public String getSearchWords() {
		return searchWords;
	}
	public void setSearchWords(String searchWords) {
		this.searchWords = searchWords;
	}
	
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public String getIndexPattern() {
		return indexPattern;
	}
	public void setIndexPattern(String indexPattern) {
		this.indexPattern = indexPattern;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public String getTimeKey() {
		return timeKey;
	}
	public void setTimeKey(String timeKey) {
		this.timeKey = timeKey;
	}
	public String getContentKey() {
		return contentKey;
	}
	public void setContentKey(String contentKey) {
		this.contentKey = contentKey;
	}

}
